package com.mobis.search;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import utils.IdWorker;

@SpringBootApplication
@EnableEurekaClient
public class SearchApplication {
        public static  void  main(String[] args){

            SpringApplication.run(SearchApplication.class,args);
            }


            @Bean
    public IdWorker idWorkker(){
            return new IdWorker(1,1);
            }
}
